﻿// JScript 文件
function timeFunc()
{
    var dayname = new Array ("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"); 
    var now=new Date();
    var year=now.getFullYear();
    var month=now.getMonth()+1;
    var day=now.getDate();
    var hour=now.getHours();
    var minute=now.getMinutes();
    var second=now.getSeconds();
    var date=now.getDay();
    if(month<10)
        month="0"+month;
    if(day<10)
        day="0"+day;
    if(hour<10)
        hour="0"+hour;
    if(minute<10)
        minute="0"+minute;
     if(second<10)
        second="0"+second;
    var time=year+"年"+month+"月"+day+"日"+"&nbsp&nbsp"+hour+":"+minute+":"+second+"&nbsp&nbsp"+dayname[date];
    $("#now").html(time);
    setTimeout(timeFunc,1000);
}

